package com.ruoyi.web.group.training.entyiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 训练课程实体类
 */
@Data
@TableName("training_sessions")
public class TrainingSession implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer sessionId;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sessionDate;
    
    private Integer playersId;
    private String accident;
    private String location;
    private String topic;
    private String content;
    private String coachInCharge;
    private Integer durationMinutes;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
}